package chapter04.item24;

/**
 * @author zhaoyuqiang
 * @date 2021年10月26日 14:39
 * @description
 */
public class Test {
    public static void main(String[] args) {
        final One one = new One();
        System.out.println(one.new Two().test);
    }

}


class One{
    String name = "one";

    class Two{
        String name = "two";
        //this.name是two的name   one.this.name是外部one的name
        String test = this.name+" "+One.this.name;
    }
}